import React, { Component } from "react";
import { withRouter, NavLink } from "react-router-dom";
import { observer, inject } from "mobx-react";
@withRouter
@inject("page")
@observer
class index extends Component {
  constructor() {
    super();
    this.state = {
      ajaxCfg: {
        url: "home/mediareports",
        cfg: {
          page_number: 1,
          page_size: 10,
        },
        headers: {},
      },
    };
  }
  getPage(ajaxCfg) {
    const { getData, data } = this.props.page;
    console.log(data);
    getData(ajaxCfg);
  }
  componentDidMount() {
    const { ajaxCfg } = this.state;
    this.getPage(ajaxCfg);
  }
  render() {
    return <div></div>;
  }
}

export default index;
